import { CorrectDetails, CorrectDetailsScores, PlantHomeWork, StdHomeWork, StdHomeWorkCorrect } from ".";
import { AnswersID, CommitID, WorkID } from "..";
import { Prepare } from "../prepare";

export type ReqJobCorrectParam = {
  commit_id: CommitID,
  audio_url: string,
  comments: string,
  gold_num: number,
  work_id: WorkID,
  work_type: number,
  score: number,
  stu_name: string,
  /**批改详情 */
  correct_infos: Array<Partial<{
    id: AnswersID,
    img_urls: string,
    /**得分信息 */
    test_infos: Array<  CorrectDetailsScores & { audio_url: string, test_type: number }>,
  }>>
}
export type ReqRevisalParam = Pick<ReqJobCorrectParam, 'commit_id' | 'work_id' | 'work_type' | 'stu_name' | 'correct_infos'>

export type ReqRefuseParam = Pick<ReqJobCorrectParam, 'commit_id' | 'work_id' | 'work_type' | 'stu_name'> | {
  /** 驳回理由*/
  reject_reason: string,
  /** 试题的次序ID，多个用英文逗号隔开 */
  wrong_tests: string
}